package edu.gzy.rpsm_property.service;

import edu.gzy.rpsm_property.pojo.PageResult;
import edu.gzy.rpsm_property.pojo.User;
import edu.gzy.rpsm_property.pojo.vo.UnpaidOwner;
import org.springframework.dao.DuplicateKeyException;

public interface UserService {
    int insertUser(User user) throws DuplicateKeyException,Exception;
    PageResult<User> pageOfOwner(int current, int size);
    int changeUserStatus(User user);
    User queryById(int id);
    PageResult<UnpaidOwner> pageOfUnpaidOwnerList(int current, int size,Integer typeId);

    boolean isIdcardExist(String idcard);
}
